package com.coderman.business.converter;

import com.coderman.common.model.student.Student;
import com.coderman.common.vo.student.StudentVO;
import org.springframework.beans.BeanUtils;

/**
 * 用于返回给前端的实体转换器
 * 学生信息管理
 * @author 文晓平
 * @version 1.0
 * @date 2023-1-9
 */
public class StudentConverter {


    /**
     * 转vo  ,用于返回给前端的实体
     * @return
     */
    public static StudentVO converterToStudentVO(Student student){
        StudentVO studentVO = new StudentVO();
        BeanUtils.copyProperties(student,studentVO);
        return studentVO;
    }
}
